From a9a336ff27a5c38831bdbb6d7c496e1aefe1f969 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Wed, 25 Mar 2020 12:56:56 +0000 Subject: [PATCH] local-revert-glibc_has_include Partial revert of upstream commit bfa864e1645e140da2e1aae3cf0d0ba0674f6eb5 until gcc stops providing fix-includes. Gbp-Pq: Topic any Gbp-Pq: Name local-revert-glibc_has_include.diff --- misc/sys/cdefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index b1695376d..f1bd994a1 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -412,6 +412,14 @@ # define __glibc_has_attribute(attr) 0 #endif +#ifdef __has_include +/* Do not use a function-like macro, so that __has_include can inhibit + macro expansion. */ +# define __glibc_has_include __has_include +#else +# define __glibc_has_include(header) 0 +#endif + #if (!defined _Noreturn \ && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ && !__GNUC_PREREQ (4,7)) -- 2.30.2